// routes/auth.js
const Router = require("koa-router");

const userController = require("../controllers/userController");
const auth = require("../middleware/auth");

const router = new Router({ prefix: "/api/v1/" });

router.post("auth/login", userController.login);
router.get("users/me", auth, userController.getCurrentUser);
module.exports = router;
